﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ERP.Business.DataTypes.Users.Credentials;

namespace ERP.Business.Services.Users
{
    /// <summary>
    /// CredentialsManager service interface
    /// </summary>
    [ServiceContract]
    public interface ICredentialsService
    {
        /// <summary>
        /// Get user's credentials for a certain module
        /// </summary>
        /// <param name="username">username</param>
        /// <param name="password">password</param>
        /// <param name="moduleID">module id</param>
        /// <returns><see cref="CredentialStatus"/></returns>
        [OperationContract]
        CredentialStatus GetUserCredential(string username, string password, string moduleID);
    }
}